package cn.bxshey.resourceSharing.service;

import cn.bxshey.resourceSharing.entity.Faqs;
import cn.bxshey.resourceSharing.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.mail.MessagingException;
import java.util.Map;

/**
 * @作者：不想说话而已
 * @Date：2023/12/18 10:55
 */
public interface LoginService  extends IService<User> {

    Map<String,Object>  login(Map<String,String> info);

    Map<String,Object> logout();

    //随机生成验证码
    Map<String,String> captcha();

    //随机注册验证码
    void captchaEnroll(String email) throws MessagingException;
}
